import {request} from './request'
export function goodsCateListReq(url,params){
  return request({
    method:'get',
    url,
    params,
  })
}
export function addCateReq(data){
  return request({
    method:'post',
    url:'categories',
    data,
  })
}
export function editCateReq(url,data){
  return request({
    method:'put',
    url,
    data,
  })
}
export function deleteCateReq(url){
  return request({
    method:'delete',
    url,
  })
}
export function paramsReq(url,params){
  return request({
    method:"get",
    url,
    params,
  })
}
export function addParamsReq(url,data){
  return request({
    method:'post',
    url,
    data,
  })
}
export function queryParamsReq(url,params){
  return request({
    method:'get',
    url,
    params,
  })
}
export function editParamsReq(url,data){
  return request({
    method:'put',
    url,
    data,
  })
}
export function deleteParamsReq(url){
  return request({
    method:'delete',
    url,
    
  })
}
export function getGoodsReq(url,params){
  return request({
    method:'get',
    url,
    params,
    
  })
}
export function deleteGoodsReq(url){
  return request({
    method:'delete',
    url,
  })
}

export function getCateListReq(){
  return request({
    method:'get',
    url:'categories'    
  })
}
export function addGoodsReq(data){
  return request({
    method:'post',
    url:'goods' ,
    data,   
  })
}

